-
Notifications
You must be signed in to change notification settings - Fork 768
[SYCL][UR] Update setErrorMessage to use int32_t instead of ur_result_t for the urAdapterGetLastError entry point #18264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: sycl
Are you sure you want to change the base?
[SYCL][UR] Update setErrorMessage to use int32_t instead of ur_result_t for the urAdapterGetLastError entry point #18264
Conversation
…urAdapterGetLastError entry point.
…tError is no longer used for warnings.
cf0a410
to
ac16a81
Compare
5a8c0a8
to
6a5663a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appears I never clicked submit on this review
Co-authored-by: Kenneth Benzie (Benie) <[email protected]>
@@ -11,21 +11,14 @@ | |||
#include "common.hpp" | |||
|
|||
// Global variables for UR_RESULT_ADAPTER_SPECIFIC_ERROR | |||
// See urGetLastResult | |||
thread_local ur_result_t ErrorMessageCode = UR_RESULT_SUCCESS; | |||
thread_local int32_t ErrorMessageCode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In other adapters you keep the initialization but change it to zero, here you drop the initialization, presumably it should also be kept here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it should, I've updated it now thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nativecpu part lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Fixes #18260
Also updates
checkUrResult
in SYCL RT to remove warning level check asurAdapterGetLastError
is now only used for errors.